package cn.diancan.service;

import java.util.List;

import cn.diancan.exception.OutMsgException;
import cn.diancan.model.SysRole;

 

public interface SysRoleService {
	/**
	 * 保存
	 */
	public boolean saveRole(SysRole bean)throws OutMsgException,Exception;
	/**
	 * 查找所有角色
	 */
	public List<SysRole> findAll();
	/**
	 * 删除角色
	 */
	public boolean deleteRole(Long id)throws OutMsgException,Exception;
	/**
	 * 查询根据id
	 */
	public SysRole findById(Long id)throws OutMsgException;
	/**
	 * 查询该用户的所有角色
	 * @param ids
	 * @return
	 * @throws OutMsgException 
	 * @throws NumberFormatException 
	 */
	public List<SysRole> findByIds(String ids) throws NumberFormatException, OutMsgException;
}
